package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class WikiListData implements Parcelable {

	@JsonProperty("id")
	private String id;

	@JsonProperty("title")
	private String title;

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	protected WikiListData(Parcel in) {
		id = in.readString();
		title = in.readString();
	}

	public WikiListData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(title);
	}

	public static final Parcelable.Creator<WikiListData> CREATOR = new Parcelable.Creator<WikiListData>() {
		public WikiListData createFromParcel(Parcel in) {
			return new WikiListData(in);
		}

		public WikiListData[] newArray(int size) {
			return new WikiListData[size];
		}
	};
}